#include <stdio.h>
#include <string.h>

#define NUM 70
int main()
{
    char ch[NUM];
    const char* p="\\|/-";
    memset(ch,0,sizeof(ch));
    int count=0;
    while(count<=70)
    {
        printf("[%-70s][%d%%] %c\r",ch,count,p[count%4]);
       ch[count++]='#';
        fflush(stdout);
        usleep(300000);
    }
    printf("\n");
    return 0;
}
